#ifndef __BSP_74HC154_H
#define __BSP_74HC154_H
#include "LPC17xx.h"
#include "lpc17xx_gpio.h"
#include "lpc17xx_pinsel.h"
#define HC154_A0(x)	((x) ? GPIO_SetValue(PINSEL_PORT_1,1<<PINSEL_PIN_15):GPIO_ClearValue(PINSEL_PORT_1,1<<PINSEL_PIN_15));
#define HC154_A1(x)	((x) ? GPIO_SetValue(PINSEL_PORT_1,1<<PINSEL_PIN_14):GPIO_ClearValue(PINSEL_PORT_1,1<<PINSEL_PIN_14));
#define HC154_A2(x)	((x) ? GPIO_SetValue(PINSEL_PORT_1,1<<PINSEL_PIN_10):GPIO_ClearValue(PINSEL_PORT_1,1<<PINSEL_PIN_10));
#define HC154_A3(x)	((x) ? GPIO_SetValue(PINSEL_PORT_1,1<<PINSEL_PIN_9):GPIO_ClearValue(PINSEL_PORT_1,1<<PINSEL_PIN_9));

void bsp_74hc154_init(void);
void write_74hc154(uint8_t dat);
#endif
